package com.panfeng.xcloud.component.trace.annotation;

import com.panfeng.xcloud.component.trace.selector.TraceImportSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启动trace组件注解
 *
 * @author xiaobo
 * @date 2018-02-07
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import(TraceImportSelector.class)
public @interface EnableTrace {

	boolean isEnabled() default false;
}
